<?php    /**     * Check whether the user is logged in or not, if not redirect to signin page     */	function isLoggedIn($userData)	{		if($userData == NULL || !isset($userData['loggedIn']) || !$userData['loggedIn'])			return false;		return true;	}?> 